import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *


class MyWindow(QWidget):
    def __init__(self):
        super(MyWindow, self).__init__()
        self.setWindowTitle('getBtn')

        get_btn = QPushButton('GET')
        self.ogg_label = QRadioButton('.ogg')
        self.mp3_label = QRadioButton('.mp3')
        self.mp3_label.setChecked(True)
        file_name_layout = QVBoxLayout()
        file_name_layout.addWidget(self.ogg_label)
        file_name_layout.addWidget(self.mp3_label)

        file_name_layout_widgt = QWidget()
        file_name_layout_widgt.setLayout(file_name_layout)
        get_btns_layout = QHBoxLayout()
        get_btns_layout.addWidget(file_name_layout_widgt)
        get_btns_layout.addWidget(get_btn)

        self.setLayout(get_btns_layout)

        get_btn.clicked.connect(self.get_audio)

    def get_audio(self):
        print(self.ogg_label.isChecked())
        print(self.mp3_label.isChecked())


if __name__ == '__main__':
    app = QApplication(sys.argv)
    myshow = MyWindow()
    myshow.show()
    sys.exit(app.exec_())
